package com.bruce.splash.ui;

import android.app.Application;

import androidx.annotation.NonNull;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.utils.RxTimerUtil;

public class ViewModel extends BaseViewModel {
    public ViewModel(@NonNull Application application) {
        super(application);
    }
    public void init() {

        RxTimerUtil.timer(2000, new RxTimerUtil.IRxNext() {
            @Override
            public void doNext(long number) {
                startModuleActivity("main_ActMain", null);
                finish();
            }
        });
    }
}
